package com.example.idachuappone.person.entity;

import org.json.JSONObject;

public class MemberYuEDetail {
    private String dateline;
    private String ext;
    private String operation;
    private String total_fee;
    private String value_id;

    public MemberYuEDetail parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("operation")) {
            this.operation = json.optString("operation");
        }
        if (json.has("value_id")) {
            this.value_id = json.optString("value_id");
        }
        if (json.has("ext")) {
            this.ext = json.optString("ext");
        }
        if (json.has("total_fee")) {
            this.total_fee = json.optString("total_fee");
        }
        if (!json.has("dateline")) {
            return this;
        }
        this.dateline = json.optString("dateline");
        return this;
    }

    public String getOperation() {
        return this.operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getValue_id() {
        return this.value_id;
    }

    public void setValue_id(String value_id) {
        this.value_id = value_id;
    }

    public String getExt() {
        return this.ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getTotal_fee() {
        return this.total_fee;
    }

    public void setTotal_fee(String total_fee) {
        this.total_fee = total_fee;
    }

    public String getDateline() {
        return this.dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }
}
